﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProtoGame.GameLib;
using Microsoft.Xna.Framework.Content;
using ProtoGame.GameLib.Entities;
using Microsoft.Xna.Framework.Graphics;

namespace ProtoGame.DescritoresContent
{
    public static class PGIMGWatermill
    {
        private const ushort tileWidth = 32;
        private const ushort tileHeight = 96;

        public static Tileset CriarTileset(ContentManager content)
        {
            return new Tileset(content.Load<Texture2D>(@"Images\Sprites\watermill"), tileWidth, tileHeight);
        }

        public static class EstadosWatermill
        {
            public const byte Parada = 0;
            public const byte Rodando = 1;
        }

        public static Animator CriarAnimatorWatermill()
        {
            Animator canoAnim = new Animator();
            canoAnim.AddStaticAnimation(EstadosWatermill.Parada, 0);
            canoAnim.AddStaticAnimation(EstadosWatermill.Rodando, 1);

            return canoAnim;
        }
    }
}
